<html>
<body>
	        <p>&nbsp; &nbsp;Relative Change Close and its simple MA(3)</p>
	        
            <%
               def dataMax = data?.values()?.max()
               def smaMax = smaData?.values()?.max()
               def yMax = Math.max(dataMax, smaMax)
               def priceData = [data?.values()?.asList(), 
                   smaData?.values()?.asList()]
            %>
            <g:lineChart type="lc" 
                size="${[900,200]}" 
                colors="${['FF0000','0000FF']}" 
                axes="x,y" 
                lineStyles="${[[2,2,2],[2,8,4]]}" 
                legend="${['Data', 'SMA']}" 
                gridLines="${dataMax/11},25" 
                axesLabels="${[0:xLabels,1:[0, yMax/2,yMax]] }"
                data="${priceData}"
                dataType="simple"/>
                
            <br/>
</body>
</html>
